package com.kstech.mp3604.fragments

import com.kstech.mp3604.base.BaseDialogFragment
import com.kstech.mp3604.databinding.FragmentDialogConfirmTaskFinishedBinding
import com.kstech.mp3604.ui.listener.DialogConfirmTaskFinishedListener


class DialogConfirmTaskFinishedFragment(val listener: DialogConfirmTaskFinishedListener) :
    BaseDialogFragment<FragmentDialogConfirmTaskFinishedBinding>(
        FragmentDialogConfirmTaskFinishedBinding::inflate
    ) {
    override fun onInitView() {
        binding.apply {
            cancelButton.setOnClickListener {
                dialog!!.cancel()
            }
            confirmButton.setOnClickListener {
                listener.dialogConfirmTaskFinished()
                dialog!!.cancel()
            }
        }
    }
}